FROM python:3.9

ENV TZ=Asia/Shanghai
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

WORKDIR /usr/src/server
COPY Makefile requirements.txt ./
RUN make install
COPY . ./

EXPOSE 8080

CMD ["make", "run"]
